<?php
namespace App\Controller;
class NewsController extends BaseController
{
    /**
     * 首页
     */
    public function index(){
        $model = D('App/Base');
        $page_title = C("TITLE");

        $this->assign(array(
            'hot_disease'    => $hot_disease,
            'friend_link'    => true,
        ));
        $this->setPageInfo("{$page_title['title']}", "{$page_title['keyword']}", "{$page_title['desc']}", 1);
        $this->display();
    }

    /*新闻详情*/
    public function info(){
        $id = I('get.id', 0, 'intval');
        $data = M('Article')->field('title,author,add_time,content')->find($id);
        $this->assign('data',$data)->display();
    }
}